package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.incoicings.dao.DictTypeMapper;
import com.spark.incoicings.service.DictTypeService;
import com.spark.invoicings.entity.DictType;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DictTypeServiceImpl extends ServiceImpl<DictTypeMapper, DictType> implements DictTypeService {

    @Resource
    DictTypeMapper dictTypeMapper;

    /**
     * 根据字典类型查询采购需求状态和类型 字典id及字典名称
     * @param
     * @return
     */
    @Override
    public List<DictType> selectDictTypeByType(String type) {
        return dictTypeMapper.selectDictTypeByType(type);
    }
}
